package br.gov.cemaden.library.model.alerta;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 *
 * @author alan
 */
@Entity
@Table(name = "agencia")
@SequenceGenerator(name = "sequence", sequenceName = "agencia_sequence")
public class Agencia implements Serializable{

    @Id
    @GeneratedValue(generator = "sequence", strategy = GenerationType.AUTO)
    @Column(name = "id_agencia")
    private Long id;
    
    @Column(name = "nome")
    private String nome;
    
    public Agencia(){
        
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }       
    
    public Agencia find(Long id){
        return new Agencia();
    }
    
    public Agencia find(String nome){
        return new Agencia();
    }
    
}
